<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="js/jquery1.42.min.js"></script>
  </head>
  <body>
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <script>
      // 通过jquery的方式获取到div标签
      var $div = $("div");
      $div[0].innerHTML = '修改后的内容'
    </script>
  </body>
</html>
